spl: remove redundant call to parse_image_header()
author[email protected] <[email protected]>
Wed, 16 Nov 2016 11:15:05 +0000 (13:15 +0200)
committerTom Rini <[email protected]>
Mon, 28 Nov 2016 20:10:31 +0000 (15:10 -0500)
Image header was checked twice.

Signed-off-by: Tomas Melin <[email protected]>
Acked-by: Lokesh Vutla <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
common/spl/spl_ymodem.c

index 13e8e51da99d5031b01e2b3bdc3474b7e44e587a..957894dccbf22486e32c581a6d9aabd86bb56228 100644 (file)
@@ -109,7 +109,6 @@ static int spl_ymodem_load_image(struct spl_image_info *spl_image,
                while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0)
                        size += res;
        } else {
-               spl_parse_image_header(spl_image, (struct image_header *)buf);
                ret = spl_parse_image_header(spl_image,
                                             (struct image_header *)buf);
                if (ret)